<?php

namespace app\model;

use Illuminate\Database\Eloquent\Relations\BelongsTo;

class GameResourcesRelevance extends Base
{

    protected $connection;
    protected $table = 'game_resources_relevance';

    public function __construct(array $attributes = [])
    {
        parent::__construct($attributes);
        $this->connection = config('database.connections.biqi_game.database');
    }


    public function ResourceBind(): BelongsTo
    {
        return $this->belongsTo(GameResources::class, 'resource', 'ulid');
    }

}
